package com.kingyea.app.market.syncMission.service;

import com.kingyea.app.market.condition.AllCondition;
import com.kingyea.app.market.syncMission.bean.SyncMission;
import com.kingyea.app.market.utils.page.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description SyncMission 接口
 * @date Created in 2018-03-22 17:48:12
 */
public interface SyncMissionService {

    /**
     * 通过ID查找对象
     *
     * @return
     */
    SyncMission getById(String id) throws Exception;

    /**
     * 列表
     *
     * @param syncMission
     * @return
     */
    List<SyncMission> list(SyncMission syncMission) throws Exception;

    /**
     * 删除
     *
     * @param
     * @return
     */
    int deleteById(String id) throws Exception;

    /**
     * 添加
     *
     * @param syncMission
     * @return
     */
    boolean save(SyncMission syncMission);

    /**
     * 更新
     *
     * @param syncMission
     * @return
     */
    SyncMission update(SyncMission syncMission) throws Exception;

    Object taskList(Map<String, Object> obj) throws Exception;

    List<SyncMission> getPushResult(Map<String, Object> obj) throws Exception;

    PageInfo<SyncMission> search(AllCondition condition) throws Exception;

    /**
     * 删除该app的同步信息
     *
     * @param appCode
     * @return
     */
    Object deletesByAppCode(String appCode) throws Exception;
}
